xen.git
19 years ago[XEN] Can be built -std=gnu99 (except for .S files).
kfraser@localhost.localdomain [Wed, 18 Oct 2006 13:46:48 +0000 (14:46 +0100)]
[XEN] Can be built -std=gnu99 (except for .S files).

Need to be careful with static initialisers:
 1. *_LOCK_UNLOCKED, CPU_MASK_* no longer include a cast
 2. Dynamic uses of the above are replaced by
    appropriate function invocations.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Wed, 18 Oct 2006 13:36:20 +0000 (14:36 +0100)]
Merge

19 years ago[XEN] Fix CR3 plumbing for shadowed PV PAE guests.
Tim Deegan [Wed, 18 Oct 2006 13:34:31 +0000 (14:34 +0100)]
[XEN] Fix CR3 plumbing for shadowed PV PAE guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoAvoid need for GREP variable by avoiding GNUisms. The
kfraser@localhost.localdomain [Wed, 18 Oct 2006 12:43:35 +0000 (13:43 +0100)]
Avoid need for GREP variable by avoiding GNUisms. The
only one we appear to have is use of '-q'. Replace it
with redirection to /dev/null.

Also avoid use of 'tail' by replacing with 'head' or
'grep' as appropriate.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxc core structures are not Linux specific.
kfraser@localhost.localdomain [Wed, 18 Oct 2006 10:38:59 +0000 (11:38 +0100)]
xc core structures are not Linux specific.
Signed-off-by: John Levon <john.levon@sun.com>
19 years agoUse new 'hg parents --template' support instead of awk scraping.
kfraser@localhost.localdomain [Wed, 18 Oct 2006 10:37:45 +0000 (11:37 +0100)]
Use new 'hg parents --template' support instead of awk scraping.
Also avoid use of non-portable 'whoami'. Use the USER env var instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[SOLARIS] Provide non-gcc-specific defn. of RING_HAS_UNCONSUMED_REQUESTS.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 18:04:46 +0000 (19:04 +0100)]
[SOLARIS] Provide non-gcc-specific defn. of RING_HAS_UNCONSUMED_REQUESTS.
From: Mark Johnson <mark.johnson@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Remove unused variable declaration.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 18:03:47 +0000 (19:03 +0100)]
[NET] back: Remove unused variable declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[SOLARIS] Xen daemons are managed separately, so we need a way to start
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:52:17 +0000 (18:52 +0100)]
[SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoDefine REX64_PREFIX to account for assembler syntax differences on SVR4 targets.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:50:08 +0000 (18:50 +0100)]
Define REX64_PREFIX to account for assembler syntax differences on SVR4 targets.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoAdd a XEN_VENDORVERSION variable to allow additional text on top of
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:45:18 +0000 (18:45 +0100)]
Add a XEN_VENDORVERSION variable to allow additional text on top of
the extra version.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoIt's not correct to call endwin() if initscr() fails, and it crashes
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:36:26 +0000 (18:36 +0100)]
It's not correct to call endwin() if initscr() fails, and it crashes
older libcurses implementations.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoFix multiple inclusion when building libxenguest.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:35:13 +0000 (18:35 +0100)]
Fix multiple inclusion when building libxenguest.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] The hotplug scripts live in a different place on Solaris.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:28:27 +0000 (18:28 +0100)]
[SOLARIS] The hotplug scripts live in a different place on Solaris.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] Add the correct machine name for Solaris to arch.py.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:23:24 +0000 (18:23 +0100)]
[SOLARIS] Add the correct machine name for Solaris to arch.py.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoAllow CONFIG_IOEMU=n to work.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:22:19 +0000 (18:22 +0100)]
Allow CONFIG_IOEMU=n to work.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] Create kernel-interface implementations for libxc and xenstored.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:21:25 +0000 (18:21 +0100)]
[SOLARIS] Create kernel-interface implementations for libxc and xenstored.
Additionally, on Solaris, tell the kernel when xenstored is running.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] Disable "chk" script. The tests aren't portable and there's little need...
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:17:19 +0000 (18:17 +0100)]
[SOLARIS] Disable "chk" script. The tests aren't portable and there's little need for it.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] A couple of simple compile fixes for tools/ on Solaris.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:15:59 +0000 (18:15 +0100)]
[SOLARIS] A couple of simple compile fixes for tools/ on Solaris.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoRemove ERR() macro from libxc. Use ERROR/PERROR as appropriate.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:05:42 +0000 (18:05 +0100)]
Remove ERR() macro from libxc. Use ERROR/PERROR as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove non-existent xc_ptrace_core() from xenctrl.h.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:00:51 +0000 (18:00 +0100)]
Remove non-existent xc_ptrace_core() from xenctrl.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[SOLARIS] Don't build ptrace code on Solaris.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:59:32 +0000 (17:59 +0100)]
[SOLARIS] Don't build ptrace code on Solaris.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[SOLARIS] On sysv platforms, gas defaults '/' to a comment
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:29:19 +0000 (17:29 +0100)]
[SOLARIS] On sysv platforms, gas defaults '/' to a comment
character. Pass in the right option to disable this behaviour, so
Xen's semantics of "divide" apply.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] Fix Xen build. ACPI headers aren't Linux-specific.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:27:11 +0000 (17:27 +0100)]
[SOLARIS] Fix Xen build. ACPI headers aren't Linux-specific.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[SOLARIS] Some makefile fragments expect a better shell than Solaris's /bin/sh,
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:19:31 +0000 (17:19 +0100)]
[SOLARIS] Some makefile fragments expect a better shell than Solaris's /bin/sh,
so force bash usage.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] On Solaris, GCC is configured to use Sun's LD. Fix the build to use
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:17:57 +0000 (17:17 +0100)]
[SOLARIS] On Solaris, GCC is configured to use Sun's LD. Fix the build to use
the correct flags, and link against libsocket where necessary.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] Use GNU grep on Solaris.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:53:39 +0000 (16:53 +0100)]
[SOLARIS] Use GNU grep on Solaris.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[SOLARIS] A couple of small fixes to the Makefiles for the kernel tool headers.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:51:09 +0000 (16:51 +0100)]
[SOLARIS] A couple of small fixes to the Makefiles for the kernel tool headers.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoIntroduce Makefile config fragments for OS-specific differences.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:48:05 +0000 (16:48 +0100)]
Introduce Makefile config fragments for OS-specific differences.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoRemove obsolete tool 'mbootpack'. SYSLINUX now supports Multiboot format.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:13:13 +0000 (16:13 +0100)]
Remove obsolete tool 'mbootpack'. SYSLINUX now supports Multiboot format.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoIgnore tags and cscope from different tools versions, plus .config.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:10:09 +0000 (16:10 +0100)]
Ignore tags and cscope from different tools versions, plus .config.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoClean up duplication of 'install' macros in the Makefiles.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 14:57:05 +0000 (15:57 +0100)]
Clean up duplication of 'install' macros in the Makefiles.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoDefine -m32/-m64 in LDFLAGS for x86 builds.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 14:54:06 +0000 (15:54 +0100)]
Define -m32/-m64 in LDFLAGS for x86 builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDon't use -Wunused-value. It's too aggressive with GCC4.
kfraser@localhost.localdomain [Tue, 17 Oct 2006 14:53:42 +0000 (15:53 +0100)]
Don't use -Wunused-value. It's too aggressive with GCC4.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] remove dead code from shadow auditing.
Tim Deegan [Tue, 17 Oct 2006 14:18:51 +0000 (15:18 +0100)]
[XEN] remove dead code from shadow auditing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Heuristic for fast revoke-write-access in HIGHPTE linux guests
Tim Deegan [Tue, 17 Oct 2006 10:14:17 +0000 (11:14 +0100)]
[XEN] Heuristic for fast revoke-write-access in HIGHPTE linux guests

This adds a heuristic for speeding up revocation of write access to
pagetables for HIGHPTE linux kernels, which previously had to brute-force
search all L1 shadows.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't keep shadows of PAE guest l3 tables.
Tim Deegan [Tue, 17 Oct 2006 10:11:48 +0000 (11:11 +0100)]
[XEN] Don't keep shadows of PAE guest l3 tables.

Holding pages readonly that have guest PAE l3 tables in them means
a performance hit and potential bug if the guest puts other
datastructures on the same page as an l3 table.  Instead of shadowing
them, treat PAE guests as if they had four CR3 registers, and load all
four top-level entries when we handle a CR3 write.  This also cuts about
500 lines of special-case refcounting and re-copying code.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't kill shadowed guest for writing bogus PTEs.
Tim Deegan [Tue, 17 Oct 2006 10:07:11 +0000 (11:07 +0100)]
[XEN] Don't kill shadowed guest for writing bogus PTEs.

If a guest writes a "bad" pagetable entry and we fail to unshadow the
page, don't kill the guest.  This makes the behaviour the same as
if the bad PTE were already in place when we shadowed the page.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoAdded tag 3.0.3-branched for changeset 6ed4368b4a9e1924c983774c4b1a2b6baf8e98a6
kfraser@localhost.localdomain [Tue, 17 Oct 2006 08:59:11 +0000 (09:59 +0100)]
Added tag 3.0.3-branched for changeset 6ed4368b4a9e1924c983774c4b1a2b6baf8e98a6

19 years ago[XENOPROF] Add a lock around the xenoprof hypercall. It mutates global state.
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:53:20 +0000 (09:53 +0100)]
[XENOPROF] Add a lock around the xenoprof hypercall. It mutates global state.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
19 years ago[XENOPROF] Fix limit-check overflow.
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:52:33 +0000 (09:52 +0100)]
[XENOPROF] Fix limit-check overflow.

Fix code limiting XENOPROF_get_buffer and XENOPROF_set_passive
argument max_samples so that no more than MAX_OPROF_SHARED_PAGES are
used.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
19 years ago[SHADOW] Trivial whitespace fix to a couple of printf format strings.
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:21:49 +0000 (09:21 +0100)]
[SHADOW] Trivial whitespace fix to a couple of printf format strings.
From: Brendan Cully <brendan@cs.ubc.ca>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:19:26 +0000 (09:19 +0100)]
[XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.

The qemu device model hangs when a non-existent floppy file is passed
via 'fda' or 'fdb'. The attached patch checks whether the floppy file
exists and raises an error if it does not.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[HVM] Fix PIC IO intercept: addresses are physical, not virtual.
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:15:51 +0000 (09:15 +0100)]
[HVM] Fix PIC IO intercept: addresses are physical, not virtual.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[NET] front: Do not read features from backend until it enters InitWait.
kfraser@localhost.localdomain [Fri, 13 Oct 2006 17:04:33 +0000 (18:04 +0100)]
[NET] front: Do not read features from backend until it enters InitWait.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Simplify probing of new interfaces. There's no need
kfraser@localhost.localdomain [Fri, 13 Oct 2006 16:10:27 +0000 (17:10 +0100)]
[NET] back: Simplify probing of new interfaces. There's no need
to watch for creation of the handle node in xenstore, as it is
written by xend when creating the backend directory as part of
the same transaction.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: No need to read handle field from xenstore. It's not used.
kfraser@localhost.localdomain [Fri, 13 Oct 2006 16:07:39 +0000 (17:07 +0100)]
[NET] front: No need to read handle field from xenstore. It's not used.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IOEMU] Fix argument to parse_host().
kaf24@localhost.localdomain [Fri, 13 Oct 2006 09:58:29 +0000 (10:58 +0100)]
[IOEMU] Fix argument to parse_host().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][SVM] Use proper name for the K8 VM_CR MSR.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 16:53:51 +0000 (17:53 +0100)]
[HVM][SVM] Use proper name for the K8 VM_CR MSR.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 15:12:10 +0000 (16:12 +0100)]
[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.

Newer BIOS implementations will be able to disable the SVM feature,
although an additional test of an MSR  (VMCR 0xC0010114 bit 4) is
necessary (set equals disabled).  Bit 4 of MSR 0xc0010114 returns 0
(SVM enabled) on machines with older BIOS' without the SVM disable
feature support.

Signed-off-by: Wei Huang <wei.huang2@amd.com>=20
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
19 years ago[NET] back: Copy tx_ring data before verification
kfraser@localhost.localdomain [Thu, 12 Oct 2006 15:09:15 +0000 (16:09 +0100)]
[NET] back: Copy tx_ring data before verification

We need to make a copy of data from tx_ring before
verifying them as otherwise what we end up using may
be different from what was verified.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[HVM] Fix resource leak in error path of AP bringup.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:28:59 +0000 (14:28 +0100)]
[HVM] Fix resource leak in error path of AP bringup.
Based on a patch from Kouya Shimura.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix booting with dom0_mem specifying 4GB or more.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:27:20 +0000 (14:27 +0100)]
[XEN] Fix booting with dom0_mem specifying 4GB or more.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
19 years agoFix privcmd mmap() on 64b architectures for regions larger than 2GB.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:25:51 +0000 (14:25 +0100)]
Fix privcmd mmap() on 64b architectures for regions larger than 2GB.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoInclude resources for PV xen-platform device in ACPI DSDT.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:14:58 +0000 (14:14 +0100)]
Include resources for PV xen-platform device in ACPI DSDT.
From: Qing He <qing.he@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVMLOADER] Remove an unused variable from an SMBIOS function.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:14:12 +0000 (14:14 +0100)]
[HVMLOADER] Remove an unused variable from an SMBIOS function.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64] Add support for enforcing singleshot mmap() semantics at the
kfraser@localhost.localdomain [Thu, 12 Oct 2006 12:55:03 +0000 (13:55 +0100)]
[IA64] Add support for enforcing singleshot mmap() semantics at the
privcmd interface.
From: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PRIVCMD] Fix ia64 domain creation by abstracting the singleshot mapping check.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 10:44:53 +0000 (11:44 +0100)]
[PRIVCMD] Fix ia64 domain creation by abstracting the singleshot mapping check.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[xenstore] Don't create a transaction for singleton read/write operations.
Christian Limpach [Thu, 12 Oct 2006 10:26:07 +0000 (11:26 +0100)]
[xenstore] Don't create a transaction for singleton read/write operations.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[xenstore] Don't limit the number of concurrent transactions for domain0 connections
Christian Limpach [Thu, 12 Oct 2006 10:25:32 +0000 (11:25 +0100)]
[xenstore] Don't limit the number of concurrent transactions for domain0 connections
since both xend and the xenstore-* utilities used in the hotplug
scripts can easily reach the limit and we trust them anyway.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] Fix race in shadow invlpg
Tim Deegan [Thu, 12 Oct 2006 10:08:48 +0000 (11:08 +0100)]
[XEN] Fix race in shadow invlpg
This fixes a crash under mmstress in SMP linux guests, where one vcpu
could remove shadow entries when another was reading them for invlpg.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[NET] back: Fix inter-domain networking when using rx-copy path.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 09:56:41 +0000 (10:56 +0100)]
[NET] back: Fix inter-domain networking when using rx-copy path.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Fix error handling to correctly skip bogus frags.
kfraser@localhost.localdomain [Thu, 12 Oct 2006 09:38:45 +0000 (10:38 +0100)]
[NET] front: Fix error handling to correctly skip bogus frags.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRevert 11728:30f13007be. Breaks Solaris guests.
kaf24@localhost.localdomain [Tue, 10 Oct 2006 21:04:01 +0000 (22:04 +0100)]
Revert 11728:30f13007be. Breaks Solaris guests.
Will need a new method for handling padded gzip files.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Add missing line from changeset 11653:3b7e11cbeb940
kfraser@localhost.localdomain [Tue, 10 Oct 2006 15:02:30 +0000 (16:02 +0100)]
[XEND] Add missing line from changeset 11653:3b7e11cbeb940
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[xend/hotplug] Remove happy gun logging.
Christian Limpach [Tue, 10 Oct 2006 12:48:34 +0000 (13:48 +0100)]
[xend/hotplug] Remove happy gun logging.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[NET] back: Fix netif rate limiting.
kfraser@localhost.localdomain [Tue, 10 Oct 2006 12:47:09 +0000 (13:47 +0100)]
[NET] back: Fix netif rate limiting.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoCorrect check for extended-cr3 support in __xen_guest fallback code.
Ian Campbell [Tue, 10 Oct 2006 09:06:56 +0000 (10:06 +0100)]
Correct check for extended-cr3 support in __xen_guest fallback code.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[TOOLS] Fixes to miniterm serial terminal utility.
kaf24@localhost.localdomain [Mon, 9 Oct 2006 22:34:00 +0000 (23:34 +0100)]
[TOOLS] Fixes to miniterm serial terminal utility.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Refcount fixes to vif rate-limiting code.
kfraser@localhost.localdomain [Mon, 9 Oct 2006 16:08:18 +0000 (17:08 +0100)]
[NET] back: Refcount fixes to vif rate-limiting code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Zero PAE shadow l3es when destroying subshadows.
Tim Deegan [Mon, 9 Oct 2006 15:43:09 +0000 (16:43 +0100)]
[XEN] Zero PAE shadow l3es when destroying subshadows.

Normally, we can leave the contents of shadows in place when we destroy
them, but this is not the case for l3 subshadows, since they do not get
zeroed on reallocation unless the entire l3 page is unshadowed.
This fixes several crashes seen with SMP PAE HVM RHEL4.2 guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEND] No need to decompress the initrd when building a domain.
kfraser@localhost.localdomain [Mon, 9 Oct 2006 12:50:00 +0000 (13:50 +0100)]
[XEND] No need to decompress the initrd when building a domain.
The guest OS should be capable of parsing an image file in
whatever format was produced by that OS's tools. Furthermore,
we have seen initrd images with trailing garbage. This causes
us to calculate the wrong size for the uncompressed data and hence
fail to build the guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PRIVCMD] Fix trivial bug introduced in IOCTL_PRIVCMD_MMAP.
kfraser@localhost.localdomain [Mon, 9 Oct 2006 12:46:34 +0000 (13:46 +0100)]
[PRIVCMD] Fix trivial bug introduced in IOCTL_PRIVCMD_MMAP.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Various fixes for mmapping I/O and foreign memory pages.
kfraser@localhost.localdomain [Mon, 9 Oct 2006 09:56:17 +0000 (10:56 +0100)]
[LINUX] Various fixes for mmapping I/O and foreign memory pages.

First, auto-translate guests can use remap_pfn_range() rather than
direct_remap_pfn_range(). This actually works better because
remap_pfn_range() can legitimately assert VM_PFNMAP (this patch
removes this flag for direct_remap_pfn_range().

There are various cleanups and fixes to the privcmd interface:
 1. VMAs should be searched and used under the mmap semaphore
 2. Mapping should be single shot (since cirect_remap_pfn_range()
    expects the PTEs to be empty when it is called).
 3. Demand-fault population of the privcmd vma should be disallowed.
 4. Various others, including a more thorough check of input args.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoSince shadow_update_paging_modes() will modify v->arch.hvm_vcpu.hw_cr3,
Tim Deegan [Mon, 9 Oct 2006 09:18:11 +0000 (10:18 +0100)]
Since shadow_update_paging_modes() will modify v->arch.hvm_vcpu.hw_cr3,
so we should always do shadow_update_paging_modes() before we writes to
GUEST_CR3 with v->arch.hvm_vcpu.hw_cr3.

Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[BLKTAP] Remove bogus extra public definition of sig_handler().
kaf24@firebug.cl.cam.ac.uk [Sun, 8 Oct 2006 17:05:57 +0000 (18:05 +0100)]
[BLKTAP] Remove bogus extra public definition of sig_handler().
Also do not build the daemon -fPIC.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLKTAP] Fix trivial indentation snafu in previous changeset.
kfraser@localhost.localdomain [Fri, 6 Oct 2006 15:51:10 +0000 (16:51 +0100)]
[BLKTAP] Fix trivial indentation snafu in previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLKTAP] Fix crash at start-of-day in blktapctrld
kfraser@localhost.localdomain [Fri, 6 Oct 2006 14:05:30 +0000 (15:05 +0100)]
[BLKTAP] Fix crash at start-of-day in blktapctrld
if /local/domain does not exist.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLKTAP] Formatting and style cleanups to blktapctrl.
kfraser@localhost.localdomain [Fri, 6 Oct 2006 14:04:42 +0000 (15:04 +0100)]
[BLKTAP] Formatting and style cleanups to blktapctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BALLOON] Replace alloc_empty_page_range with new helper alloc_empty_pages_and_pagevec.
kfraser@localhost.localdomain [Fri, 6 Oct 2006 10:52:41 +0000 (11:52 +0100)]
[BALLOON] Replace alloc_empty_page_range with new helper alloc_empty_pages_and_pagevec.
This is a better fit with all the callers, who now allocate discontiguous empty pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLK] tap: Allocate pages for foreign mappings individually rather than contiguously.
kfraser@localhost.localdomain [Fri, 6 Oct 2006 09:30:43 +0000 (10:30 +0100)]
[BLK] tap: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][SVM] Revert changeset 11679:a949bd6ceb85
kaf24@firebug.cl.cam.ac.uk [Fri, 6 Oct 2006 07:09:52 +0000 (08:09 +0100)]
[HVM][SVM] Revert changeset 11679:a949bd6ceb85

Although in the correct spirit, it seems there is some other
dependency in the code that assumes ExtInts are queued until
thay can be immediately delivered (EFLAGS.IF==1). This patch
therefore caused instability in Linux guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TPM] back: Allocate pages for foreign mappings individually rather than contiguously.
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 22:16:21 +0000 (23:16 +0100)]
[TPM] back: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Allocate pages for foreign mappings individually rather than contiguously.
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 21:49:26 +0000 (22:49 +0100)]
[NET] back: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Remove unused rx_mmap area. Copying happens inside Xen, so
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 21:14:39 +0000 (22:14 +0100)]
[NET] back: Remove unused rx_mmap area. Copying happens inside Xen, so
there is no need for a mapping area inside the driver for copying
receive path.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLK] back: Allocate pages for foreign mappings individually rather
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 21:11:24 +0000 (22:11 +0100)]
[BLK] back: Allocate pages for foreign mappings individually rather
than in one large contiguous region.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Thu, 5 Oct 2006 15:48:28 +0000 (16:48 +0100)]
Merge

19 years ago[XEN] Fix memtype accessor domctls.
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:42:27 +0000 (16:42 +0100)]
[XEN] Fix memtype accessor domctls.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Change microcode_update function interface inside Xen.
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:38:30 +0000 (16:38 +0100)]
[XEN] Change microcode_update function interface inside Xen.

Confine the knowledge that the buffer gets accessed without use of
proper guest handle accessors to a single file.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Remove unused MULTICALL_arg6, and unnecessary use of STR() macro.
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:36:39 +0000 (16:36 +0100)]
[XEN] Remove unused MULTICALL_arg6, and unnecessary use of STR() macro.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoMake sure that if one of the intermediate steps fails, a subsequent
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:35:56 +0000 (16:35 +0100)]
Make sure that if one of the intermediate steps fails, a subsequent
make invocation doesn't think there's nothing to do.
This should be viewed as an intermediate step towards splitting up
the rule into three independent ones, passing intermediate files
from one to the next.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[VMX] Remove vcpu->arch.hvm_vmx.cpu_state
Tim Deegan [Thu, 5 Oct 2006 15:21:39 +0000 (16:21 +0100)]
[VMX] Remove vcpu->arch.hvm_vmx.cpu_state

The flags in hvm_vmx.cpu_state were shadows of shadows of bits in
guest CR0_READ_SHADOW, CR4_READ_SHADOW and EFER, and were not being
kept in sync with the other shadows if changes were made while
running under vmxassist.  Just use the full shadows of those control
regs instead, and replace cpu_state with a single vmxassist flag.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XM] Fix 'xm help' when called on a command-name prefix.
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:17:06 +0000 (16:17 +0100)]
[XM] Fix 'xm help' when called on a command-name prefix.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[XEND] Fix pygrub when run server-side on a domain with blktap disks.
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:14:50 +0000 (16:14 +0100)]
[XEND] Fix pygrub when run server-side on a domain with blktap disks.

For some slightly-crazy reason the blktap patches changed the name
of the SEXPR block containing the disk definition 'vbd' to 'tap', even
though merely changing the 'uname' fragement was sufficient. eg

 (vbd (backend 0) (dev hda:disk) (uname file:/xen/rhel4x86_64.img)
 (mode w) )

changes to

 (tap (backend 0) (dev hda:disk) (uname tap:aio:/xen/rhel4x86_64.img)
 (mode w) )

If you create a domain with xm, then xm runs pygrub client side which
works fine. If you create a domain by feeding a block of SEXPR to Xend
over its network port, then pygrub is run server side. The code in
XenD which decides which disk to run pygrub against only looks for
'device/vbd' in the SEXPR so fails to see any blktap disks.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[NET] front: Fix size of grant_rx_ref[]. It should use the RX ring
kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:05:12 +0000 (16:05 +0100)]
[NET] front: Fix size of grant_rx_ref[]. It should use the RX ring
size, rather than the TX ring size.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
19 years ago[HVM/vncserver] Implement a 'vnclisten' option to limit the interface
Christian Limpach [Thu, 5 Oct 2006 13:53:29 +0000 (14:53 +0100)]
[HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on.

Defaults to only listen on 127.0.0.1

The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"

Also allows specifying the hostname associated with an interface to limit
to that interface.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[NET] front: Include linux/moduleparam.h since we use module_param_*
Ian Campbell [Thu, 5 Oct 2006 13:07:57 +0000 (14:07 +0100)]
[NET] front: Include linux/moduleparam.h since we use module_param_*

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[MBOOTPACK] Fix building mbootpack on x86/64.
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 11:08:08 +0000 (12:08 +0100)]
[MBOOTPACK] Fix building mbootpack on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLKTAP] Blktapctrl: Add asynchronous watch on dom0 name entry for blktapctrl on...
jchesterfield@dhcp92.uk.xensource.com [Thu, 5 Oct 2006 09:55:13 +0000 (10:55 +0100)]
[BLKTAP] Blktapctrl: Add asynchronous watch on dom0 name entry for blktapctrl on startup. This patch cleans up the synchronisation issues between blktapctrl and xend at initialisation if the Dom0 entries have not yet been populated.

Signed-off-by: Julian Chesterfield <julian@xensource.com>
19 years ago[NET] front: If the kernel does not include GSO then look for TSO.
Ian Campbell [Thu, 5 Oct 2006 09:09:25 +0000 (10:09 +0100)]
[NET] front: If the kernel does not include GSO then look for TSO.

This allows us to take advantage of TSO when running as PV-on-HVM on
older kernels.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>